package service.impl;

import dao.RecruitmentTypeDao;
import domain.RecruitmentType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.RecruitmentTypeService;
import service.ServiceResponse;

import java.util.List;

/**
 * Created by tyler on 23/6/15.
 */
@Service
public class RecruitmentTypeServiceImpl extends ServiceBase implements RecruitmentTypeService {

    @Autowired
    private RecruitmentTypeDao recruitmentTypeDao;

    @Override
    public ServiceResponse getTypeList() {
        List<RecruitmentType> typeList = recruitmentTypeDao.getTypeList();
        return ServiceResponse.success().with("typeList", typeList);
    }
}
